#include "DrawImage.h"


const int ImgW = 320;
const int ImgH = 240;
const int ImgPitch = ROUND4(ImgW*3);
unsigned char Img[ImgPitch*ImgH] = {0};

int main(){
    CDrawImg_Linux drawer;
    
    int nPos = 0;
    for( int j=0; j<ImgH; ++j ){
        for( int i=0; i<ImgW; ++i ){
            nPos = ImgPitch*j + 3*i;
            Img[nPos] = 0;
            Img[nPos+1] = 0;
            Img[nPos+2] = 255;
        }
    }
    
    
    while(1){
        drawer.ShowImage("",Img,ImgW,ImgH,3);
    }
}